package com.antler.smt.service.portal;

import com.antler.smt.enums.ResultCodeEnum;
import com.antler.smt.request.portal.OrderCommentReq;
import com.antler.smt.response.base.Result;
import com.antler.smt.response.portal.GetOrderCommentListResp;

import java.util.List;

/**
 * 订单评价Service
 *
 * @author zhangyi
 * @date 2018/4/13 9:42
 */
public interface OrderCommentService {

    /**
     * 写入订单评价
     *
     * @param orderId
     * @param req
     * @return
     */
    Result<ResultCodeEnum> insertOrderComment(Long orderId, OrderCommentReq req,List<Long> attachmentIds);

    /**
     *  获取订单评价列表
     *
     * @return
     */
    Result<GetOrderCommentListResp> getOrderCommentList();

    /**
     *  获取订单评价通过orderId
     *
     * @param orderId
     * @return
     */
    Result<GetOrderCommentListResp> getOrderInfoByOrderIdShowPurchaser(Long orderId);

}
